package com.nd.dao;

import cn.hutool.core.date.DateTime;
import com.nd.pojo.bean.Keyword;
import com.nd.pojo.bean.KeywordExample;
import org.apache.ibatis.annotations.Param;

import java.sql.Time;
import java.util.List;

public interface KeywordMapper {
    long countByExample(KeywordExample example);

    int deleteByExample(KeywordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Keyword record);

    int insertSelective(Keyword record);

    List<Keyword> selectByExample(KeywordExample example);

    Keyword selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Keyword record, @Param("example") KeywordExample example);

    int updateByExample(@Param("record") Keyword record, @Param("example") KeywordExample example);

    int updateByPrimaryKeySelective(Keyword record);

    int updateByPrimaryKey(Keyword record);

    Integer keywordCreateGetMaxSortOrder();

    void keywordCreate(Keyword keyword);

    Integer keywordGetId();

    void keywordUpdate(Keyword keywordBO);

    void updateTime(@Param("updateTime") DateTime time, @Param("id") Integer id);

    void keywordDelete(Integer id);
}